diff --git a/lib/phoenix_live_view/test/upload_client.ex b/lib/phoenix_live_view/test/upload_client.ex index f577913543..a0e140631a 100644 --- a/lib/phoenix_live_view/test/upload_client.ex +++ b/lib/phoenix_live_view/test/upload_client.ex @@ -202,7 +202,7 @@ defmodule Phoenix.LiveViewTest.UploadClient do defp chunk_upload(state, from, entry_name, percent, proxy_pid, element) do entry = get_entry!(state, entry_name) - if entry.new_percent >= 100 do + if entry.chunk_percent >= 100 do state else do_chunk(state, from, entry, proxy_pid, element, percent)