fix default embed colour as #UNDEFINED
All checks were successful
Build and Push Docker Image / build (push) Successful in 16s

This commit is contained in:
Corban-Lee Jones 2024-08-12 12:35:51 +01:00
parent 8c34d15bf1
commit 262ca6ef0d

View File

@ -152,17 +152,8 @@ $("#serverForm").on("submit", async function(event) {
serverIsOwner = selectedOption.attr("data-isowner");
var serverPrimaryKey = await registerNewServer(serverName, serverGuildId, serverIconHash, serverPermissions, serverIsOwner);
if (serverPrimaryKey !== false) {
addToLoadedServers({
id: serverPrimaryKey,
name: serverName,
guild_id: serverGuildId,
icon: serverIconHash,
permissions: serverPermissions,
owner: serverIsOwner
});
}
if (serverPrimaryKey)
addToLoadedServers(await getSavedGuild(serverPrimaryKey));
$("#serverFormModal").modal("hide");
});