Skip to content

Commit 5c62678

Browse files
authored
Fix typo in test-snaps (#3020)
The wrong method was being triggered in `test-snaps`. Fixed the typo.
1 parent c85d1da commit 5c62678

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/examples/packages/notifications/src/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@ import { Box, Row, Address } from '@metamask/snaps-sdk/jsx';
44

55
/**
66
* Handle incoming JSON-RPC requests from the dapp, sent through the
7-
* `wallet_invokeSnap` method. This handler handles two methods:
7+
* `wallet_invokeSnap` method. This handler handles three methods:
88
*
99
* - `inApp`: Show an in-app notification to the user.
1010
* - `native`: Show a desktop notification to the user.
11+
* - `inApp-expanded`: Show an expanded view in-app notification to the user.
1112
*
1213
* @param params - The request parameters.
1314
* @param params.request - The JSON-RPC request object.

packages/test-snaps/src/features/snaps/notifications/Notifications.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const Notifications: FunctionComponent = () => {
4040
<Button
4141
id="sendExpandedViewNotification"
4242
disabled={isLoading}
43-
onClick={handleClick('inApp-extended')}
43+
onClick={handleClick('inApp-expanded')}
4444
>
4545
Send In-App Notification With Expanded View
4646
</Button>

0 commit comments

Comments
 (0)