diff --git a/src/providers/queries/notificationQueries.ts b/src/providers/queries/notificationQueries.ts index 9a9945344..93414a77a 100644 --- a/src/providers/queries/notificationQueries.ts +++ b/src/providers/queries/notificationQueries.ts @@ -36,7 +36,6 @@ export const useNotificationsQuery = (filter: NotificationFilters) => { return lastId; }; - // query initialization const notificationQueries = useQueries({ queries: pageParams.map((pageParam) => ({ @@ -67,7 +66,7 @@ export const useNotificationsQuery = (filter: NotificationFilters) => { } }; - const _dataArrs = notificationQueries.map(query => query.data); + const _dataArrs = notificationQueries.map((query) => query.data); return { data: unionBy(..._dataArrs, 'id'), diff --git a/src/screens/transfer/screen/delegateScreen.js b/src/screens/transfer/screen/delegateScreen.js index 3d24c1482..6727bc9c6 100644 --- a/src/screens/transfer/screen/delegateScreen.js +++ b/src/screens/transfer/screen/delegateScreen.js @@ -164,15 +164,21 @@ class DelegateScreen extends Component { const vest_shares = parseAsset(curShare.vesting_shares); this.setState({ delegatedHP: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3), + hp: vestsToHp(vest_shares.amount, hivePerMVests).toFixed(3), + amount: vest_shares.amount, }); } else { this.setState({ delegatedHP: 0, + hp: 0, + amount: 0, }); } } else { this.setState({ delegatedHP: 0, + hp: 0, + amount: 0, }); } } catch (err) { @@ -585,9 +591,9 @@ class DelegateScreen extends Component { - + {step >= 1 && _renderStepOne()} {step >= 2 && _renderStepTwo()}