Skip to content

Commit

Permalink
fix: quote submission message show quote info
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianJiang2021 committed Oct 11, 2024
1 parent af4048f commit f3aaee5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function B3StatusNotification(props: B3StatusNotificationProps) {
}

if (+companyStatus === 1) {
setTip(StatusNotifications.approvedTip);
setTip(b3Lang(StatusNotifications.approvedTip));
setType('success');
setBcColor('#2E7D32');
}
Expand Down
3 changes: 3 additions & 0 deletions apps/storefront/src/pages/QuoteDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { get } from 'lodash-es';

import B3Spin from '@/components/spin/B3Spin';
import { useMobile } from '@/hooks';
import useScrollBar from '@/hooks/useScrollBar';
import { GlobaledContext } from '@/shared/global';
import {
exportB2BQuotePdf,
Expand Down Expand Up @@ -511,6 +512,8 @@ function QuoteDetail() {
return true;
};

useScrollBar(false);

return (
<B3Spin isSpinning={isRequestLoading || quoteCheckoutLoadding}>
<Box
Expand Down
5 changes: 1 addition & 4 deletions apps/storefront/src/pages/QuoteDraft/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -357,13 +357,12 @@ function QuoteDraft({ setOpenPage }: PageProps) {
const createdAt = inpCurrentCreatedAt || currentCreatedAt;

if (currentQuoteId) {
handleReset();
navigate(`/quoteDetail/${currentQuoteId}?date=${createdAt}`, {
state: {
to: 'draft',
},
});

handleReset();
}
};

Expand Down Expand Up @@ -548,8 +547,6 @@ function QuoteDraft({ setOpenPage }: PageProps) {
handleAfterSubmit(id, createdAt);
} else {
setQuoteSubmissionResponseOpen(true);

handleReset();
}
} catch (error: any) {
if (error.message && error.message.length > 0) {
Expand Down

0 comments on commit f3aaee5

Please sign in to comment.