Skip to content

Commit

Permalink
fix: uploading state not working (#340)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeetinaXD committed Apr 26, 2024
1 parent 1c39d1d commit 8ced05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/functions/createRequestState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export default function createRequestState<S, E, R, T, RC, RE, RH, UC extends Us
return stateExport(frontStates.downloading, hookInstance) as unknown as ExportedType<Progress, S>;
},
get uploading() {
hookInstance.ed = trueValue;
hookInstance.eu = trueValue;
return stateExport(frontStates.uploading, hookInstance) as unknown as ExportedType<Progress, S>;
},
onSuccess(handler: SuccessHandler<S, E, R, T, RC, RE, RH>) {
Expand Down

0 comments on commit 8ced05b

Please sign in to comment.