From eb0464cd5defd56905d597fc59d3d88ab2543396 Mon Sep 17 00:00:00 2001 From: bludnic Date: Thu, 2 Nov 2023 14:31:00 +0000 Subject: [PATCH] refactor(Chat): position `validationErrors` before docblock --- src/components/Chat/Chat.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Chat/Chat.vue b/src/components/Chat/Chat.vue index 98013c914..4bb122499 100644 --- a/src/components/Chat/Chat.vue +++ b/src/components/Chat/Chat.vue @@ -304,17 +304,17 @@ function getUserMeta(userId) { return user } -/** - * Validate message before sending. - * @param {string} message - * @returns {string | false} If `false` then validation passed without errors. - */ const validationErrors = { emptyMessage: 'EMPTY_MESSAGE', notEnoughFunds: 'NON_ENOUGH_FUNDS', notEnoughFundsNewAccount: 'NON_ENOUGH_FUNDS_NEW_ACCOUNT', messageTooLong: 'MESSAGE_LENGTH_EXCEED' } +/** + * Validate message before sending. + * @param {string} message + * @returns {string | false} If `false` then validation passed without errors. + */ function validateMessage(message) { // Ensure that message contains at least one non-whitespace character if (!message.trim().length) {