Skip to content

Commit

Permalink
Merge pull request #897 from bitholla/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
abeikverdi authored Jul 28, 2021
2 parents 96f8c7f + 795ec24 commit 6d28ac6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/src/containers/Deposit/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const RenderContentForm = ({
selectedNetwork,
}) => {
const coinObject = coins[currency];
if (coinObject && !coinObject.meta.is_fiat) {
if (coinObject && coinObject.type !== 'fiat') {
return (
<Fragment>
<div className="withdraw-form-wrapper">
Expand Down Expand Up @@ -164,7 +164,7 @@ const RenderContentForm = ({
</div>
</Fragment>
);
} else if (coinObject && coinObject.meta.is_fiat) {
} else if (coinObject && coinObject.type === 'fiat') {
return (
<Fiat
id="REMOTE_COMPONENT__FIAT_WALLET_DEPOSIT"
Expand Down
4 changes: 2 additions & 2 deletions web/src/containers/Withdraw/form.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class Form extends Component {
currency === 'xrp' || currency === 'xlm' || selectedNetwork === 'xlm';

const coinObject = coins[currency];
if (coinObject && !coinObject.meta.is_fiat) {
if (coinObject && coinObject.type !== 'fiat') {
return (
<form autoComplete="off" className="withdraw-form-wrapper">
<div className="withdraw-form">
Expand Down Expand Up @@ -252,7 +252,7 @@ class Form extends Component {
</Dialog>
</form>
);
} else if (coinObject && coinObject.meta.is_fiat) {
} else if (coinObject && coinObject.type === 'fiat') {
return (
<Fiat
id="REMOTE_COMPONENT__FIAT_WALLET_WITHDRAW"
Expand Down
3 changes: 3 additions & 0 deletions web/src/reducers/userReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ const INITIAL_STATE = {
tradeVolumes: INITIAL_TRADE_VOLUME_OBJECT,
affiliation: {},
is_hap: false,
meta: {},
};

export default function reducer(state = INITIAL_STATE, action) {
Expand All @@ -148,6 +149,7 @@ export default function reducer(state = INITIAL_STATE, action) {
full_name,
gender,
dob,
meta,
} = action.payload;
const userData = extractuserData(action.payload);
const fees = action.payload.fees || state.fees;
Expand Down Expand Up @@ -185,6 +187,7 @@ export default function reducer(state = INITIAL_STATE, action) {
full_name,
dob,
gender,
meta,
};
}
case 'SET_USER_DATA': {
Expand Down

0 comments on commit 6d28ac6

Please sign in to comment.