File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ export default defineComponent({
172
172
async function claim() {
173
173
emit (' loading' , true );
174
174
try {
175
- await store .dispatch (' invites/claim' , props .secretKey );
175
+ await store .dispatch (' invites/claim' , Buffer . from ( props .secretKey ) );
176
176
await updateBalance ();
177
177
} catch (error ) {
178
178
if (await store .dispatch (' invites/handleNotEnoughFoundsError' , { error , isInviteError: true })) {
Original file line number Diff line number Diff line change @@ -12,7 +12,10 @@ export default {
12
12
invites : [ ] ,
13
13
} ,
14
14
mutations : {
15
- add : ( { invites } , secretKey ) => invites . unshift ( { secretKey, createdAt : Date . now ( ) } ) ,
15
+ add : ( { invites } , secretKey ) => invites . unshift ( {
16
+ secretKey : secretKey . toJSON ( ) ,
17
+ createdAt : Date . now ( ) ,
18
+ } ) ,
16
19
delete ( state , secretKey ) {
17
20
state . invites = state . invites . filter ( ( invite ) => invite . secretKey !== secretKey ) ;
18
21
} ,
You can’t perform that action at this time.
0 commit comments