From a9d2a4654b414a01a53a0d79f1f90a5102564710 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Fri, 5 Nov 2021 14:56:03 -0300
Subject: feedback state rendering

---
 packages/anastasis-webui/src/components/Notifications.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'packages/anastasis-webui/src/components/Notifications.tsx')

diff --git a/packages/anastasis-webui/src/components/Notifications.tsx b/packages/anastasis-webui/src/components/Notifications.tsx
index c916020d7..097ebb4de 100644
--- a/packages/anastasis-webui/src/components/Notifications.tsx
+++ b/packages/anastasis-webui/src/components/Notifications.tsx
@@ -46,10 +46,10 @@ function messageStyle(type: MessageType): string {
 
 export function Notifications({ notifications, removeNotification }: Props): VNode {
   return <div class="block">
-    {notifications.map((n,i) => <article key={i} class={messageStyle(n.type)}>
+    {notifications.map((n, i) => <article key={i} class={messageStyle(n.type)}>
       <div class="message-header">
         <p>{n.message}</p>
-        <button class="delete" onClick={() => removeNotification && removeNotification(n)} />
+        {removeNotification && <button class="delete" onClick={() => removeNotification && removeNotification(n)} />}
       </div>
       {n.description && <div class="message-body">
         {n.description}
-- 
cgit v1.2.3

