Skip to content

Commit

Permalink
fix: expected message data type
Browse files Browse the repository at this point in the history
  • Loading branch information
dawidsowardx committed May 16, 2024
1 parent a2a1d01 commit 696ef06
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/chrome/offscreen/helpers/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export const initialize = (messageClient: MessageClient) => {
},
sessionRouterData: () => {
messageClient
.sendMessageAndWaitForConfirmation<Record<SessionId, WalletPublicKey>>(
createMessage.getSessionRouterData(),
)
.andThen((data) =>
.sendMessageAndWaitForConfirmation<{
sessionRouter: Record<SessionId, WalletPublicKey>
}>(createMessage.getSessionRouterData())
.andThen(({ sessionRouter }) =>
messageClient.handleMessage(
createMessage.setSessionRouterData(data, 'offScreen'),
createMessage.setSessionRouterData(sessionRouter, 'offScreen'),
),
)
},
Expand Down

0 comments on commit 696ef06

Please sign in to comment.