Bug Fixing

This commit is contained in:
ajat91.sudrajat 2022-02-07 15:02:51 +07:00
parent 947d6cea0a
commit 7d1bf48fe9

View File

@ -506,6 +506,7 @@ export const DesktopLayout = observer(() => {
onVisibleChange={() => setClicked(!clicked)} onVisibleChange={() => setClicked(!clicked)}
> >
{store.authentication.userData.role !== "Admin" && {store.authentication.userData.role !== "Admin" &&
store.authentication.userData.role !== "Customer Service" &&
new Intl.NumberFormat("id-ID", { new Intl.NumberFormat("id-ID", {
style: "currency", style: "currency",
currency: "IDR", currency: "IDR",
@ -564,30 +565,33 @@ export const DesktopLayout = observer(() => {
width: "100%", width: "100%",
}} }}
></div> ></div>
{store.authentication.userData.role !== "Admin" && ( {store.authentication.userData.role !== "Admin" &&
<Card store.authentication.userData.role !== "Customer Service" && (
size="small" <Card
title={ size="small"
<span title={
style={{ <span
fontStyle: "bold", style={{
textAlign: "center", fontStyle: "bold",
}} textAlign: "center",
> }}
Saldo :{" "} >
{new Intl.NumberFormat("id-ID", { Saldo :{" "}
style: "currency", {new Intl.NumberFormat("id-ID", {
currency: "IDR", style: "currency",
}).format(store.authentication.profileData?.wallet || 0)} currency: "IDR",
</span> }).format(
} store.authentication.profileData?.wallet || 0
style={{ )}
marginRight: 10, </span>
width: 210, }
height: 31, style={{
}} marginRight: 10,
></Card> width: 210,
)} height: 31,
}}
></Card>
)}
<Popover <Popover
className={store.ui.mediaQuery.isDesktop ? "shadow" : null} className={store.ui.mediaQuery.isDesktop ? "shadow" : null}
autoAdjustOverflow={true} autoAdjustOverflow={true}