Skip to content

Commit

Permalink
fix: dr center (#773)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertfolch-redeemeum authored Jul 21, 2023
1 parent 7303c9f commit 74b22ce
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,10 @@ function EscalateStepTwo({
handleSendingEscalateMessage
]);
const showSuccessInitialization =
chatInitializationStatus === ChatInitializationStatus.INITIALIZED &&
bosonXmtp;
[
ChatInitializationStatus.INITIALIZED,
ChatInitializationStatus.ALREADY_INITIALIZED
].includes(chatInitializationStatus) && bosonXmtp;
return (
<Formik<typeof initialValues>
initialValues={{ ...initialValues }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ export default function Confirmation({
const [redeemError, setRedeemError] = useState<Error | null>(null);
const { chatInitializationStatus } = useChatStatus();
const showSuccessInitialization =
chatInitializationStatus === ChatInitializationStatus.INITIALIZED &&
bosonXmtp;
[
ChatInitializationStatus.INITIALIZED,
ChatInitializationStatus.ALREADY_INITIALIZED
].includes(chatInitializationStatus) && bosonXmtp;
const isInitializationValid =
!!bosonXmtp &&
[
Expand Down
6 changes: 4 additions & 2 deletions src/components/product/ConfirmProductDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ export default function ConfirmProductDetails({
const { address } = useAccount();

const showSuccessInitialization =
chatInitializationStatus === ChatInitializationStatus.INITIALIZED &&
bosonXmtp;
[
ChatInitializationStatus.INITIALIZED,
ChatInitializationStatus.ALREADY_INITIALIZED
].includes(chatInitializationStatus) && bosonXmtp;
const showInitializeChat =
(chatInitializationStatus === ChatInitializationStatus.NOT_INITIALIZED &&
address &&
Expand Down

0 comments on commit 74b22ce

Please sign in to comment.