minor fixes per pr review

This commit is contained in:
jcw-fisker
2021-06-09 16:34:22 -07:00
parent 6ea163f786
commit e107a5d544
2 changed files with 2 additions and 2 deletions

View File

@@ -51,7 +51,7 @@ export const UpdatesProvider = ({ children }) => {
const deletePackage = async (package_id, token) => {
let result;
let index = packages.findIndex((element) => {
const index = packages.findIndex((element) => {
return element.id === package_id;
});
packages.splice(index, 1);