Skip to content

Commit

Permalink
fix: stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
joaodiaslobo committed Apr 15, 2024
1 parent 5e27395 commit 226f079
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/atomic_web/components/gradient.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ defmodule AtomicWeb.Components.Gradient do

def gradient(assigns) do
{gradient_color_a, gradient_color_b} =
if Map.has_key?(assigns, :id) do
generate_color(assigns.id)
if Map.has_key?(assigns, :seed) do
generate_color(assigns.seed)
else
generate_color()
end
Expand Down

0 comments on commit 226f079

Please sign in to comment.