Skip to content

Commit

Permalink
Fix typo in test-snaps (#3020)
Browse files Browse the repository at this point in the history
The wrong method was being triggered in `test-snaps`. Fixed the typo.
  • Loading branch information
hmalik88 authored Jan 15, 2025
1 parent c85d1da commit 5c62678
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/examples/packages/notifications/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { Box, Row, Address } from '@metamask/snaps-sdk/jsx';

/**
* Handle incoming JSON-RPC requests from the dapp, sent through the
* `wallet_invokeSnap` method. This handler handles two methods:
* `wallet_invokeSnap` method. This handler handles three methods:
*
* - `inApp`: Show an in-app notification to the user.
* - `native`: Show a desktop notification to the user.
* - `inApp-expanded`: Show an expanded view in-app notification to the user.
*
* @param params - The request parameters.
* @param params.request - The JSON-RPC request object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const Notifications: FunctionComponent = () => {
<Button
id="sendExpandedViewNotification"
disabled={isLoading}
onClick={handleClick('inApp-extended')}
onClick={handleClick('inApp-expanded')}
>
Send In-App Notification With Expanded View
</Button>
Expand Down

0 comments on commit 5c62678

Please sign in to comment.