Skip to content

Commit fb10378

Browse files
christianalfoniCompuIves
authored andcommitted
fix enum (codesandbox#2449)
1 parent 16dc0d1 commit fb10378

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

packages/app/src/app/overmind/namespaces/patron/actions.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
import { AsyncAction, Action } from 'app/overmind';
22
import { withLoadApp } from 'app/overmind/factories';
3-
4-
export enum StripeErrorCode {
5-
REQUIRES_ACTION = 'requires_action',
6-
}
3+
import { StripeErrorCode } from '@codesandbox/common/lib/types';
74

85
export const patronMounted: AsyncAction = withLoadApp();
96

packages/common/src/types/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,3 +651,7 @@ export enum LiveMessageEvent {
651651
CHAT = 'chat',
652652
NOTIFICATION = 'notification',
653653
}
654+
655+
export enum StripeErrorCode {
656+
REQUIRES_ACTION = 'requires_action',
657+
}

0 commit comments

Comments
 (0)