Skip to content

Commit

Permalink
fix load time when uploading images
Browse files Browse the repository at this point in the history
  • Loading branch information
fivaz committed Apr 20, 2024
1 parent 91dff98 commit ddf06ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/components/task-form/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export async function addTask(data: Omit<AnyTask, 'id'>, userId: string, file?:
if (file) {
const image = await storeImage(userId, newTaskRef.id, file);

await updateDoc(newTaskRef, { image });
void updateDoc(newTaskRef, { image });

void addTaskToGoal(userId, { ...data, image });
} else {
Expand Down

0 comments on commit ddf06ac

Please sign in to comment.