Skip to content

Commit

Permalink
fix: crypto currency issue for non loggedin users (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv authored Aug 16, 2024
1 parent 1f3c28e commit 42c2811
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/javascript/app/pages/form/form-component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const FormComponent = () => {
return moment(endtime_data.options[0].value).format('ddd - DD MMM, YYYY');
};

const getAmount = () => isCryptocurrency(currency) ? amount_crypto : amount;
const getAmount = () => (isCryptocurrency(currency) && amount_crypto) ? amount_crypto : amount;

return (
<BreakpointProvider>
Expand Down
6 changes: 5 additions & 1 deletion src/sass/_common/reskin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ body {
@media(max-width: 768px) {
width: 100%;
margin: 0px;
box-shadow: unset;
}
}
&-search-container {
Expand Down Expand Up @@ -840,12 +841,15 @@ html.test {
.custom-dropdown-wrapper {
padding: 8px 0 0;
background: var(--core-color-solid-slate-50);
box-shadow: var(--component-dropdownList-elevation-shadow);
margin: 10px 0px;
border-radius: 8px;
border: 1px solid rgba(0, 0, 0, 0.04);
max-height: 320px;
overflow-y: auto;
box-shadow: var(--component-dropdownList-elevation-shadow);
@media(max-width: 768px) {
box-shadow: unset;
}

&::-webkit-scrollbar {
scrollbar-width: thin;
Expand Down

0 comments on commit 42c2811

Please sign in to comment.