Skip to content

Commit

Permalink
Add mutual activities on Organisation accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
mikozet committed Aug 17, 2023
1 parent ddbd8ff commit 8b6fefd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/utils/debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default function logError(error) {
}

export function translateErrorForUser(error) {
let text;
let text = `${error.message}. ${translate('ErrorCodes.GeneralErrorMessage')}`;
if (error instanceof CoreError) {
if (error.code == ErrorCodes.INSUFFICIENT_FUNDS) {
text = translate('ErrorCodes.CoreErrorInsufficientFunds');
Expand All @@ -57,11 +57,7 @@ export function translateErrorForUser(error) {
text = error.message;
} else if (error.code == ErrorCodes.INVALID_OPTIONS) {
text = `${error.message}. ${translate('ErrorCodes.GeneralErrorMessage')}`;
} else {
text = `${error.message}. ${translate('ErrorCodes.GeneralErrorMessage')}`;
}
} else {
text = `${error.message}. ${translate('ErrorCodes.GeneralErrorMessage')}`;
}

return text;
Expand Down
6 changes: 5 additions & 1 deletion src/views/Profile.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ const ProfileStatus = ({ address, deploymentStatus, trustStatus }) => {
const ProfileContent = ({ address, deploymentStatus, trustStatus }) => {
const [selectedPanel, setSelectedPanel] = useState(DEFAULT_PANEL);
const [redirectPath, setRedirectPath] = useState(null);
const { isOrganization } = useIsOrganization(address);

const handleProfileSelection = (selectedAddress) => {
setRedirectPath(
Expand All @@ -209,7 +210,10 @@ const ProfileContent = ({ address, deploymentStatus, trustStatus }) => {
return <Redirect push to={redirectPath} />;
}

if (!deploymentStatus.isReady || !deploymentStatus.isDeployed) {
if (
!isOrganization &&
(!deploymentStatus.isReady || !deploymentStatus.isDeployed)
) {
return null;
}

Expand Down

0 comments on commit 8b6fefd

Please sign in to comment.