Skip to content

Commit

Permalink
chore(plugin-pwa): fix typo (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope authored May 26, 2021
1 parent 8de5f0f commit a38f2a2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export interface PwaEvent extends Emitter {
export const pwaEventSymbol: InjectionKey<PwaEvent> = Symbol('pwaEvent')

export const usePwaEvent = (): PwaEvent => {
const pawEvent = inject(pwaEventSymbol)
if (!pawEvent) {
const pwaEvent = inject(pwaEventSymbol)
if (!pwaEvent) {
throw new Error('usePwaEvent() is called without provider.')
}
return pawEvent
return pwaEvent
}

0 comments on commit a38f2a2

Please sign in to comment.