Skip to content

Commit

Permalink
Merge pull request #2970 from threefoldtech/development_2.6_edit_err_msg
Browse files Browse the repository at this point in the history
Edit additional fee err msg
  • Loading branch information
zaelgohary authored Jun 13, 2024
2 parents 7003247 + 2ee9c0f commit 0d985de
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@
</template>

<script lang="ts">
import { TFChainErrors } from "@threefold/types";
import { onMounted, ref, watch } from "vue";
import { useGrid } from "../../stores";
Expand Down Expand Up @@ -119,8 +120,10 @@ export default {
});
createCustomToast("Additional fee is set successfully.", ToastType.success);
await getExtraFee();
} catch (error) {
createCustomToast("Failed to set additional fees!", ToastType.danger);
} catch (e) {
let msg = "Failed to set additional fees.";
if (e instanceof TFChainErrors.smartContractModule.NodeHasActiveContracts) msg += " Node has active contracts.";
createCustomToast(msg, ToastType.danger);
} finally {
isSetting.value = false;
showDialogue.value = false;
Expand Down

0 comments on commit 0d985de

Please sign in to comment.