Summary:
This PR only fixes a typo in `ShadowNode.cpp`

## Changelog

[Internal] [Fixed] - Fix typo in `ShadowNode.cpp`
Pull Request resolved: https://github.com/facebook/react-native/pull/26655

Differential Revision: D17743059

Pulled By: TheSavior

fbshipit-source-id: 6bbaf54b712c0a80da8dfafea2634309279a8f21
This commit is contained in:
masaaki1915 2019-10-03 23:10:50 -07:00 коммит произвёл Facebook Github Bot
Родитель 7d8b7ff3aa
Коммит ae3f7a7616
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -129,11 +129,11 @@ const State::Shared &ShadowNode::getState() const {
State::Shared ShadowNode::getMostRecentState() const {
if (state_) {
auto commitedState = state_->getMostRecentState();
auto committedState = state_->getMostRecentState();
// Commited state can be `null` in case if no one node was commited yet;
// Committed state can be `null` in case if no one node was committed yet;
// in this case we return own `state`.
return commitedState ? commitedState : state_;
return committedState ? committedState : state_;
}
return ShadowNodeFragment::statePlaceholder();