Skip to content

Commit

Permalink
Fix type passed by argument to the listener as Error
Browse files Browse the repository at this point in the history
  • Loading branch information
vdyalex committed Oct 8, 2021
1 parent 499392f commit d0929b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ModalState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const createModalState = (): ModalStateType<any> => {
}
} catch (error) {
subscriber.error = true
subscriber.listener(null, error)
subscriber.listener(null, error as Error)
}
}

Expand Down

0 comments on commit d0929b9

Please sign in to comment.