edit payments history
This commit is contained in:
@@ -192,12 +192,18 @@ export async function getUserPayments() {
|
||||
const parsed = await response.json();
|
||||
console.log(parsed);
|
||||
|
||||
return parsed;
|
||||
return {
|
||||
payments: parsed,
|
||||
error: null
|
||||
};
|
||||
} else {
|
||||
return null
|
||||
throw 'error';
|
||||
}
|
||||
} catch (error) {
|
||||
return null
|
||||
return {
|
||||
payments: [],
|
||||
error: 'error'
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user