From 9262895d1335bedb599633591989e79f3c0f3d14 Mon Sep 17 00:00:00 2001 From: Berenice Medel Date: Tue, 30 Nov 2021 09:03:08 -0600 Subject: [PATCH] fix typo --- lib/live_beats_web/live/nav.ex | 4 ++-- lib/live_beats_web/live/profile_live.ex | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/live_beats_web/live/nav.ex b/lib/live_beats_web/live/nav.ex index a32a04a..c2dcec6 100644 --- a/lib/live_beats_web/live/nav.ex +++ b/lib/live_beats_web/live/nav.ex @@ -15,7 +15,7 @@ defmodule LiveBeatsWeb.Nav do active_tab = case {socket.view, socket.assigns.live_action} do {ProfileLive, _} -> - if params["profile_username"] == current_user_profile_userame(socket) do + if params["profile_username"] == current_user_profile_username(socket) do :profile end @@ -29,7 +29,7 @@ defmodule LiveBeatsWeb.Nav do {:cont, assign(socket, active_tab: active_tab)} end - defp current_user_profile_userame(socket) do + defp current_user_profile_username(socket) do if user = socket.assigns.current_user do user.username end diff --git a/lib/live_beats_web/live/profile_live.ex b/lib/live_beats_web/live/profile_live.ex index 82e42ae..9f550fa 100644 --- a/lib/live_beats_web/live/profile_live.ex +++ b/lib/live_beats_web/live/profile_live.ex @@ -58,7 +58,7 @@ defmodule LiveBeatsWeb.ProfileLive do module={SongRowComponent} rows={@songs} row_id={fn song -> "song-#{song.id}" end} - owns_profile?= {@owns_profile?} + owns_profile?={@owns_profile?} > <:col let={%{song: song}} label="Title"><%= song.title %> <:col let={%{song: song}} label="Artist"><%= song.artist %>