Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoevanp committed Aug 25, 2023
1 parent 2822672 commit 0a3602c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/definition/uikit/UIKitInteractionPayloadFormatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function formatErrorInteraction(errorInteraction: IUIKitErrorInteractionP
}

export function formatToastMessageInteraction(toast: IToastMessagePayload, context: IUIKitInteraction): IUIKitToastMessageInteraction {
if (UIKitInteractionType.ERRORS !== context.type) {
if (UIKitInteractionType.TOAST_MESSAGE !== context.type) {
throw new Error(`Invalid type "${ context.type }" for error interaction`);
}

Expand Down

0 comments on commit 0a3602c

Please sign in to comment.