chore: remove URL_TRUNCATE_LENGTH from component

This commit is contained in:
Deepanshu committed 2025-06-18 11:09:23 +05:30
1 parent 75309fc53c
commit 6b3773ed76
2 files changed
+2 -5

No files matched your search

+1 -1
View File
@@ -6,7 +6,7 @@ export const safelyParseFloat = (value) => {
return parsedValue;
};
export const formatMonitorUrl = (url, maxLength = 50) => {
export const formatMonitorUrl = (url, maxLength = 55) => {
if (!url) return "";
const strippedUrl = url.replace(/^https?:\/\//, "");
return strippedUrl.length > maxLength